package com.mcxx.modules.miniSalvation.family.dao.write;

import com.mcxx.modules.miniSalvation.family.entity.FamilyMainEntity;
import org.apache.ibatis.annotations.Param;


public interface FamilyMainWriteDao {

    int insert(FamilyMainEntity familyMain);


    int insertIgnoreNull(FamilyMainEntity familyMain);


    int update(FamilyMainEntity familyMain);


    int updateIgnoreNull(FamilyMainEntity familyMain);


    Boolean deleteFamilyMainById(@Param("id")String id);


    int updateFamilyIncomeById(String familyId, double income);


    int updateSaveMemberById(String familyId, int saveMemberObject, String masterInSave);


    int deleteFmySalaryByOrderId(@Param("orderId")String orderId);

    int updateSalvationNo(@Param("orderId") String orderId,@Param("salvationNo") String salvationNo);

    int changeSaveMemberById(FamilyMainEntity familyMain);


    int changeSaveMemberNumById(FamilyMainEntity familyMain);


    int updateMainByMainHistory(@Param("familyId") String familyId, @Param("orderId") String orderId);

    int copyFamilyMainSource(@Param("familyId") String familyId);

    int updateLowerStatus(@Param("familyId") String familyId,@Param("status") String status);

    int updateLowerFamily(FamilyMainEntity familyMainEntity);
}
